const path = require('path');
// const ExtractTextPlugin = require('extract-text-webpack-plugin');

module.exports = {
	entry:'./src/main.js',
	output:{
		filename:'bundle.js',
		path: path.resolve(__dirname, './dist'),
	},
	module:{
		rules:[
			{
				test:/\.css$/,
				exclude: /node_modules/,
				use: ['style-loader', 'css-loader']
			},
			{
				test:/\.scss/,
				exclude: /node_modules/,
				use: ['style-loader', 'css-loader','sass-loader']
			},
			{
				test:/\.less/,
				exclude: /node_modules/,
				use: ['style-loader', 'css-loader','less-loader']
			}
		]
	},
	plugins:[
		// new ExtractTextPlugin({
		// 	filename:'index.css'
		// })
	],
	devServer:{
		
	}
}